import request from '@/utils/request'

// 查询接入测站列表
export function page(query) {
  return request({
    url: '/v1/GET/station/access/page',
    method: 'get',
    params: query
  })
}

// 获取所有接入接入测站列表
export function getAllStation(query) {
  return request({
    url: '/v1/GET/station/access/list',
    method: 'get',
    params: query
  })
}

// 获取单个接入测站详情
export function getStation(stCd) {
  return request({
    url: '/v1/GET/station/access/' + stCd,
    method: 'get'
  })
}

// 新增单个接入测站
export function insertStation(data) {
  return request({
    url: '/v1/POST/station/access',
    method: 'post',
    data: data
  })
}

// 修改单个接入测站
export function updateStation(data) {
  return request({
    url: '/v1/PUT/station/access',
    method: 'put',
    data: data
  })
}
// 初始化接入测站缓存
export function initCache() {
  return request({
    url: '/v1/POST/station/access/cache',
    method: 'POST',
  })
}
// 删除单个或多个接入测站
export function delStation(stCds) {
  return request({
    url: '/v1/DELETE/station/access/' + stCds,
    method: 'delete'
  })
}

